public class Student {
    String name;
    int age;
    public Student() {
        System.out.println("无参构造方法执行");
    }

    public Student(String name) {
        this.name = name;
        System.out.println("含一个参数的构造方法执行");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("含两个参数的构造方法执行");
    }
}
